package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdAddressMapper;
import com.diankangwo.factory.entity.TdAddress;
import com.diankangwo.factory.service.TdAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tdAddressService")
public class TdAddressServiceImpl implements TdAddressService {

    @Autowired
    private TdAddressMapper tdAddressMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdAddressMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdAddress record) {
        return tdAddressMapper.insert(record);
    }

    @Override
    public int insertSelective(TdAddress record) {
        return tdAddressMapper.insertSelective(record);
    }

    @Override
    public TdAddress selectByPrimaryKey(Integer id) {
        return tdAddressMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdAddress record) {
        return tdAddressMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdAddress record) {
        return tdAddressMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdAddress> selectByUid(String uid) {
        return tdAddressMapper.selectByUid(uid);
    }
}
